extension ListExtensions on List? {
  int safeLength() {
    return this?.length ?? 0;
  }

  T? safeIndex<T>(int index){
    if(index >= (this?.length ?? 0)) return null;
    return this?[index];
  }
}
